package com.oa.works.dao;

import com.oa.works.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.Set;

@Mapper
public interface TbUserDao {
    public boolean haveRootUser();

    public int insert(HashMap hashMap);

    public Integer searchIdByOpenId(String openId);

    // set对象会自动过滤重复的数据
    public Set<String> searchUserPermissions(int userId);

    public TbUser searchById(int userId);

    public HashMap searchNameAndDept(int userId);

}